package com.sixkey.utils;

/**
 * ClassName: SecureUtil
 * Package: com.sixkey.utils
 * Description:
 *
 * @Author: @weixueshi
 * @Create: 2023/9/29 - 21:50
 * @Version: v1.0
 */

import cn.hutool.crypto.SecureUtil;

/**
 * 再次封装hutool的密码加密工具
 */
public class SecureUtils {

    public static String securePassword(String password){
        String securePassword = SecureUtil.md5(password);
        return securePassword;
    }

    /**
     * 测试生成加密密码
     * @param args
     */
    public static void main(String[] args) {
        String password = "123456";
        String securePassword = SecureUtil.md5(password);
        //e10adc3949ba59abbe56e057f20f883e
        System.out.println(securePassword);
    }
}
